<template>
  <div class="muislist">
    <ul class="tanxin">
      <li v-for="(item, index) in RenList" :key="index">
        <div class="top">
          <img :src="item.picUrl" />
          <div class="top_mms tanxin">
            <span class="spanimg"></span>
            <span>{{ item.playCount }}</span>
            <div></div>
          </div>
        </div>
        <p class="bott">{{ item.name }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
import { Tuijiange } from "@/request/api";
export default {
  data() {
    return {
      RenList: [],
    };
  },
  created() {
    Tuijiange().then((res) => {
      if (res.data.code === 200) {
        this.RenList = res.data.result;
      }
    });
  },
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";
.muislist {
  width: 730px;
  margin-top: 20px;
  ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    li {
      padding: 0 0 30px 50px;
      width: 140px;
      height: 204px;
      padding-left: 42px;
      margin-bottom: 40px;
      .top {
        width: 140px;
        height: 140px;
        position: relative;
        img {
          display: block;
          width: 100%;
          height: 100%;
        }
        .top_mms {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 27px;
          background-position: 0 -537px;
          color: #ccc;
          background-color: rgba(0, 0, 0, 0.5);
          .spanimg {
            display: block;
            width: 20px;
            height: 20px;
            overflow: hidden;
            background-image: url("../assets/images/icon.png");
            background-position: 2px -141px;
          }
          span {
            font-size: 12px;
            line-height: 27px;
          }
          div {
            width: 20px;
            height: 20px;
            background-image: url("../assets/images/iconall.png");
            background-position: 0 4px;
          }
        }
      }
      .bott {
        width: 140px;
        cursor: pointer;
        font-size: 14px;
        line-height: 25px;
        margin-top: 5px;
        font-size: 15px;
      }
    }
  }
}
</style>